<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>角色管理</title>
</head>
<body>
	<form id="role_form" class="form-horizontal">
		<input type="hidden" id="id" name="id" value="">
		<div class="form-group">
			<label class="col-sm-2 control-label">角色名称:</label> 
			<div class="col-sm-10">
				<input type="text" class="form-control" name="roleName" value="">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">角色等级:</label> 
			<div class="col-sm-10">
				<input type="text" class="form-control" name="level" value="">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">备注:</label> 
			<div class="col-sm-10">
				<textarea rows ="4" class="form-control" name="remark" ></textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">角色状态:</label> 
			<div class="col-sm-10">
				<input name="isOpen" type="checkbox" checked="checked" class="make-switch">
			</div>
		</div>
	</form>
	<script type="text/javascript">
	$(function(){
		$("#role_form [name='isOpen']").bootstrapSwitch({
			onSwitchChange: function(event, state){
				$(this).val(state);  
			}
		});
	});
	</script>
</body>
</html>